import Vue from 'vue'
import App from './App'
import store from '@/store';
import tools from '@/common/utils/tools'

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

import TnCustom from './components/TnCustom/TnCustom.vue'
Vue.component('tn-custom', TnCustom)

Vue.config.productionTip = false;

App.mpType = 'app';

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);


// ..加载动画....
import ourLoading from '@/components/our-loading/our-loading.vue'
Vue.component('ourLoading', ourLoading)

// bike request
import api from '@/common/request/index'
Vue.prototype.$api = api;
// bike tools
Vue.prototype.$tools = tools;

// input
import EffectInput from 'effect-input'
import 'effect-input/dist/index.css'
Vue.use(EffectInput)

import iput from 'vue-input-effects'
Vue.use(iput)



// 引入vuex
const vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

Vue.use(require('vue-moment'));

// 创建对象
const app = new Vue({
	store,
    ...App
});

// 接口集中管理
import httpInstall from '@/http/install.js'
Vue.use(httpInstall, app)

// 公共函数
import globalFunc from '@/utils/func.js'
Vue.use(globalFunc, app);


//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
app.$mount()